package com.zznode.redsun.smartcrm.business.service;

import org.springframework.transaction.annotation.Transactional;

import com.zznode.csp.domain.commons.query.Page;
import com.zznode.redsun.commons.dto.ProductDto;
import com.zznode.redsun.commons.dto.ProductQuery;

public interface ProductService {

	@Transactional
	void save(ProductDto dto);

	@Transactional(readOnly = true)
	ProductDto get(Long id);

	@Transactional(readOnly = true)
	Page<ProductDto> query(ProductQuery params, int pageNumber, int pageSize);
}
